<template>
    <div class="btn-container">
        <el-button type="danger" v-if="isShow('isDelete')">删除</el-button>
        <el-button type="success" v-if="isShow('isEdit')">编辑</el-button>
        <el-button type="primary" v-if="isShow('isAdd')">新增</el-button>
    </div>
</template>


<script>
export default {
    data(){
        return{
            list:window.localStorage.getItem('btnList')
        }
    },
    mounted(){
       
    },
    methods:{
        isShow(v){
            if(this.list.indexOf(v)>-1){
                return true
            }else{
                return false
            }
        }
    }
}
</script>


<style lang="scss" scoped>
.btn-container{
    padding: 25px;
}
</style>
